package com.id.supaclean.ui

import android.annotation.SuppressLint
import android.widget.ImageView
import android.widget.TextView
import com.id.supaclean.R
import com.id.supaclean.common.BaseFragment

/**
 * Created by YiGo on 2022/6/14.
 */
class FinishFragment : BaseFragment() {
    override fun layoutId(): Int = R.layout.fragment_finish


    override fun initView() {
        super.initView()
        view?.findViewById<ImageView>(R.id.finish_iv)?.setOnClickListener {
            navigate(R.id.action_finishFragment_to_firstFragment)
        }
        view?.findViewById<ImageView>(R.id.finish_fragment_back_iv)?.setOnClickListener {
            navigate(R.id.action_finishFragment_to_firstFragment)
        }
    }

    @SuppressLint("SetTextI18n")
    override fun initEvent() {
        super.initEvent()
        if (arguments?.getString("clean_num") != null) {
            view?.findViewById<TextView>(R.id.junk_num)?.text = arguments?.getString("clean_num") + "GB"
        }
    }
}